package ca.unbc.cpsc672.fuzzy.rule;

import ca.unbc.cpsc672.fuzzy.function.MembershipFunction;

public class IfFuzzyOr extends IfFuzzyAnd  {

	/**
	 * IF ipt1 OR ipt2
	 * 
	 * @param ipt1
	 * @param ipt2
	 * @param operator
	 */
	public IfFuzzyOr(MembershipFunction ipt1, MembershipFunction ipt2) {
		super(ipt1, ipt2);
	}

	@Override
	public double getSupportLevel(double... iptx) {
		return FuzzyOperator.or(ipt1, ipt2, iptx[0], iptx[1]);
	}
}
